﻿/*!
* jQuery DivMenu plugin: 
* 
* version 0.1 2010-03-08
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Authors: Kim Seoung Min
*/

(function ($) {
    $.fn.DateBoxFromTo = function (method) {
        if (methods[method]) {
            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
        } else if (typeof method === 'object' || !method) {
            return methods.init.apply(this, arguments);
        } else {
            $.error('Method ' + method + ' does not exist on jQuery.tooltip');
        }
    };

    var methods = {
        init: function () {
            //alert("박스초기화" + $(this).attr('id'));
            toDate = $(this).after(" - <input class='txtTo' id='" + $(this).attr('id') + "_txtTo'  type='text'  />");
            var fotmto = $("#" + $(this).attr('id') + ", #" + toDate.attr('id') + "_txtTo");
            fotmto.css('width', '6em');
            fotmto.datepicker({
                showButtonPanel: true,
                changeMonth: true,
                changeYear: true,
                showOtherMonths: true,
                selectOtherMonths: true,
                showWeek: true,
                firstDay: 1,
                dateFormat: 'yy-mm-dd'
            });


        },

        WhoIs: function () {
        }
    }
})(jQuery);



